<template>
  <div class="box">
    <router-view></router-view>
    <div class="footer">
      <div class="a">
        <div>
          <img src="../../assets/image/selected1.png" alt />
        </div>
        <div>
          <router-link to="/index/shop">商城</router-link>
        </div>
      </div>
      <div class="a">
        <div>
          <img src="../../assets/image/selected1.png" alt />
        </div>
        <div>
          <router-link to="/index/category">分类</router-link>
        </div>
      </div>
      <div class="a">
        <div>
          <img src="../../assets/image/selected1.png" alt />
        </div>
        <div>
          <router-link to="/index/cart">购物车</router-link>
        </div>
      </div>
      <div class="a">
        <div>
          <img src="../../assets/image/selected1.png" alt />
        </div>
        <div>
          <router-link to="/index/mine">我的</router-link>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
.box {
  width: 100vw;
  height: calc(100vh-.49rem); 
}
.footer {
  width: 100vw;
  height: 0.49rem;
  display: flex;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  border-top: 1px solid #ccc;
  background-color: #fff;
  justify-content: space-evenly;
}

.active {
  color: #ff6040;
}
.a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
img {
  width: 18px;
  height: 20px;
}
</style>